// component/theme/min-autumn.js
Component({
	options: {
		styleIsolation: 'apply-shared'
	},

	/**
	 * 组件的属性列表
	 */
	properties: {
         'data':Object,
	},

	/**
	 * 组件的初始数据
	 */
	data: {

	},

	/**
	 * 组件的方法列表
	 */
	methods: {
		viewmore:function () {
			wx.switchTab({
				url:'/pages/index/categorysku/categorysku'
			})
		},
		productdetail:function (e) {
			let id = e.currentTarget.dataset.id;
			wx.navigateTo({
				url: '/pages/index/productdetail/productdetail?id=' + id
			})
		},
		buy:function (e) {
			let id = e.currentTarget.dataset.id;
			wx.navigateTo({
				url: '/pages/gifts/pages/order/order?id=' + id
			})
		},
		viewmore: function () {
			wx.switchTab({
				url: '/pages/index/categorysku/categorysku'
			})
		},
		login: function () {
			wx.switchTab({
				url: '/pages/about/about'
			})
		},
		attestation:function(){
			wx.navigateTo({
				url: '/pages/auth/preattestation/preattestation'
			})
		},

		makecard:function () {
			wx.navigateTo({
				url:`/pages/tool/card/make1/Template/Template`
			})
		}
	}
});
